package com.seednia.module.core.profile.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import com.seednia.foundation.framework.dto.AbstractRecord;
import com.seednia.module.core.tagging.dto.ITaggable;
import com.seednia.module.core.tagging.dto.TaggingDto;

/**
 * Concrete Tagging class for language 
 * @author Young Suk Ahn
 *
 */
@XmlRootElement(name = "LanguageTaggingDto", 
namespace = "http://seednia.com/core/1.0")
@XmlType(name = "LanguageTaggingDto")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class LanguageTaggingDto extends TaggingDto {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2941394251894793301L;
	
	public static final String TAG_TYPE = "Language";
	
	LanguageTaggingDto () {}
	
	public LanguageTaggingDto(ITaggable taggable)
	{
		super(taggable, TAG_TYPE);
	}
	
	/**
	 * To create object from JSONP string
	 * Used by the REST framework when sending this object as parameter
	 * @param jsonStr
	 * @return
	 */
	public static LanguageTaggingDto fromString(String jsonStr) {
		LanguageTaggingDto retval = (LanguageTaggingDto) AbstractRecord.fromString(LanguageTaggingDto.class, jsonStr);
		return retval;
	}
}
